<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8" />
		<title>面向研究团队的参考文献管理与服务分布式系统</title>
		<meta name="keywords" content="面向研究团队的参考文献管理与服务分布式系统" />
		<meta name="description" content="面向研究团队的参考文献管理与服务分布式系统" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<link href="../css/bootstrap.min.css" rel="stylesheet" />
		<link href="../css/bootstrap.css" rel="stylesheet" />
		<link href="../css/bootstrap-table.css" rel="stylesheet" />
		<link href="../css/bootstrap-editable.css" rel="stylesheet" />
		<link rel="stylesheet" href="../css/font-awesome.min.css" />

		<link rel="stylesheet" href="../css/ace.min.css" />
		<link rel="stylesheet" href="../css/ace-rtl.min.css" />
		<link rel="stylesheet" href="../css/ace-skins.min.css" />
		<!-- <link href="css/switch/bootstrap-switch.css" rel="stylesheet"> -->

		<script src="../js/ace-extra.min.js"></script>
		<script src="../js/angular.min.js"></script>
		<script src="../js/angular-cookies.min.js"></script>

	</head>

	<body>

		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try {
					ace.settings.check('navbar', 'fixed')
				} catch(e) {}
			</script>
			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
						<i class="icon-book"></i>
						<!-- <i class="icon-leaf"></i> -->
							
						
							面向研究团队的参考文献管理与服务分布式系统
						</small>
					</a>
					<!-- /.brand -->
				</div>
				<!-- /.navbar-header -->

				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">

						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="../avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>欢迎,</small>
									登录
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="icon-cog"></i> 设置
									</a>
								</li>

								<li>
									<a href="#">
										<i class="icon-user"></i> 简况
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="/ma/user/logout"  class="a_post">
										<i class="icon-off"></i> 登出
									</a>
								</li>
							</ul>
						</li>
					</ul>
					<!-- /.ace-nav -->
				</div>
				<!-- /.navbar-header -->
			</div>
			<!-- /.container -->

		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try {
					ace.settings.check('main-container', 'fixed')
				} catch(e) {}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try {
							ace.settings.check('sidebar', 'fixed')
						} catch(e) {}
					</script>

					<!-- #sidebar-shortcuts -->
					<ul class="nav nav-list">
						<li >
							<a href="application.html">
								<i class="icon-legal"></i>
								<span class="menu-text"> 审核申请 </span>
							</a>
						</li>
						<li >
							<a href="singleUser.html">
								<i class="icon-leaf"></i>
								<span class="menu-text"> 独立用户 </span>
							</a>
						</li>
						<li class="active">
							<a href="#">
								<i class="icon-group"></i>
								<span class="menu-text"> 研究团队 </span>
							</a>
						</li>
					
						<li>
							<a href="email.html">
								<i class="glyphicon glyphicon-envelope"></i>
								<span class="menu-text"> 邮件系统 </span>
							</a>
						</li>
						<li>
							<a href="message.html">
								<i class="glyphicon glyphicon-comment"></i>
								<span class="menu-text"> 短信系统 </span>
							</a>
						</li>
						<li>
							<a href="professionalCode.html">
								<i class="glyphicon glyphicon-th-list"></i>
								<span class="menu-text"> 专业分类 </span>
							</a>
						</li>
						<li id="city">
							<a href="city.html">
								<i class="icon-globe"></i>
								<span class="menu-text"> 地区城市 </span>
							</a>
						</li>

						<li>
							<a href="#" class="dropdown-toggle">
								<i class="glyphicon glyphicon-tasks"></i> 组织机构
								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu">
								<li>
									<a href="#" class="dropdown-toggle">
										<i class="icon-leaf"></i> 出版商
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu">
										<li>
											<a href="publisher1.html">
												<i class="icon-plus"></i> 国外出版商
											</a>
										</li>

										<li>
											<a href="publisher2.html">
												<i class="icon-eye-open"></i> 国内出版商
											</a>
										</li>
									</ul>
								</li>
								<li>
									<a href="#" class="dropdown-toggle">
										<i class="icon-leaf"></i> 大学
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu">
										<li>
											<a href="institution1.html">
												<i class="icon-plus"></i> 国外大学
											</a>
										</li>

										<li>
											<a href="institution2.html">
												<i class="icon-eye-open"></i> 国内大学
											</a>
										</li>
									</ul>
								</li>

								<li>
									<a href="#" class="dropdown-toggle">
										<i class="icon-pencil"></i> 其他机构
										<b class="arrow icon-angle-down"></b>
									</a>

									<ul class="submenu">
										<li>
											<a href="#">
												<i class="icon-plus"></i> 国外其他机构
											</a>
										</li>

										<li>
											<a href="#">
												<i class="icon-eye-open"></i> 国内其他机构
											</a>
										</li>
									</ul>
								</li>
							</ul>
						</li>
						
						<li>
							<a href="profile.html">
								<i class="glyphicon glyphicon-user"></i>
								<span class="menu-text"> 个人信息 </span>
							</a>
						</li>
						

					</ul>
					<!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try {
							ace.settings.check('sidebar', 'collapsed')
						} catch(e) {}
					</script>
				</div>

				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try {
								ace.settings.check('breadcrumbs', 'fixed')
							} catch(e) {}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">主页</a>
							</li>

							<li class="active">研究团队</li>
						</ul>
						<!-- .breadcrumb -->

						<!-- #nav-search -->
					</div>

					<div class="page-content">

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<div class="row">
									<div class="col-xs-12">
                                    <!-- 
                                    <div class="table-header">
											研究团队
									</div>
                                     -->
										

										<div class="table-responsive  ">
											<div id="toolbar" class="btn-group row">
											 <!--  <div class="col-md-8" >
										          <div class="table-header">
										          	研究团队信息
								                  </div>
										          </div> -->
												 <div class="col-md-4">
													<button id="btn_add" type="button" class="btn btn-default">
											        <span class="glyphicon glyphicon-plus" ></span>新增
											        </button>
										          </div> 
											</div>
											
											<table id="sample-table-2" class="table-responsive  ">
											</table>

										</div>
									</div>
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div>
							<!-- /.col -->
						</div>
						<!-- /.row -->
					</div>
					<!-- /.page-content -->
				</div>
				<!-- /.main-content -->

				
				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; 换肤</span>
						</div>

						<!-- <div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								居中
								<b></b>
							</label>
						</div> -->
					</div>
				</div>
				
				<!-- /#ace-settings-container -->
			</div>
			<!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>

		</div>

		<div id="myModal" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
			<div class="modal-dialog modal-sm" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title">警告</h4>
					</div>
					<div class="modal-body">
						<p>确定删除？</p>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-default confirm">确定</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			<div class="modal-dialog" role="document" style="width: 680px;">
				<div class="modal-content" style="border:5px solid #307ecc">
					<div class="modal-header" style="background-color:#307ecc">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title"  style="color:white" id="myModalLabel">新增团队</h4>
					</div>
					<div class="modal-body" style="padding: 20px 30px 20px 30px;">

						<form >
							<div style="height:35px;background-color:#C6DEEB;border: 1px solid darkgrey;align:center;" class="row">
								<p style="text-align: center;line-height: 35px;text-indent:0px;margin-left:5px;font-size: 16px;color: #0066B3;font-family: '微软雅黑';font-weight:bold;">管理员和团队注册</p>
							</div>
							<div class="row " style="border:1px solid #C6DEEB">
								<!-- <div class="col-md-2"><label>选择是否是独立团队</label></div> -->
				                <div class=" col-md-3">
									<label>
										<input type="radio" name="optionsRadiosAdd" id="optionsRadios1" value="y" checked>独立团队
									</label>
								</div>
								<div class=" col-md-3">
									<label>
										<input type="radio" name="optionsRadiosAdd" id="optionsRadios2" value="n">非独立团队
									</label>
								</div>
								<div class="col-md-6">
									选择独立团队时不需要注册团队信息，团队信息根据管理员信息初始化,可进入管理界面修改
								</div>
							</div>
							<div style="border: 1px solid darkgrey;" class="row">
								<div class="col-md-6" style="border:1px solid #C6DEEB">
										<div class="col-md-1"></div>
										<div class="col-md-12">
										 	<div class="form-group" style="background-color:#eea200;width:80%;color:white;top:4px;position:relative;"  >
												 <span style="margin-left:20px;font-size:large">注册管理员信息</span>
											</div>
											<div class="form-group  has-feedback">
								                <label for="username">用&nbsp;&nbsp;户&nbsp;&nbsp;号:&nbsp;</label>
								                <div class="input-group" style="width:80%">
								                  
								                    <input id="userno" class="form-control" placeholder="请输入用户号" maxlength="10" type="text">
								                </div>
								                <span style="color:red;display: none;" class="tips"></span>
								                <span style="display: none;" class=" glyphicon glyphicon-remove form-control-feedback"></span>
								                <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
							           	   </div>
							           	   <div class="form-group   has-feedback">
								                <label for="username">用&nbsp;&nbsp;户&nbsp;&nbsp;名:&nbsp;</label>
								                <div class="input-group" style="width:80%">
								                    <input id="username" class="form-control" placeholder="请输入用户名" maxlength="20" type="text">
								                </div>
								           </div>
								           <div class="form-group   has-feedback">
								                <label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:&nbsp;</label>
								                <div class="input-group" style="width:80%">
								                    <input id="password" class="form-control" placeholder="请输入密码" maxlength="20" type="password">
								                </div>
								                <span style="color:red;display: none;" class="tips"></span>
								                <span style="display: none;" class="glyphicon glyphicon-remove form-control-feedback"></span>
								                <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
								            </div>
								            <div class="form-group   has-feedback">
								                <label for="phoneNum">手&nbsp;机&nbsp;号&nbsp;码:</label>
								                <div class="input-group" style
								                ="width:80%">
								                    <input id="phoneNum" class="form-control" placeholder="请输入手机号码" maxlength="11" type="text">
								                </div>
								                <span style="color:red;display: none;" class="tips"></span>
								                <span style="display: none;" class="glyphicon glyphicon-remove form-control-feedback"></span>
								                <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
								            </div>
								
								            <div class="form-group   has-feedback">
								                <label for="phoneNum">用户Email:</label>
								                <div class="input-group" style="width:80%">
								                    <input id="useremail" class="form-control" placeholder="请输入用户Email" maxlength="20" type="text">
								                </div>
								                <span style="color:red;display: none;" class="tips"></span>
								                <span style="display: none;" class="glyphicon glyphicon-remove form-control-feedback"></span>
								                <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
								            </div>
							          	</div>
					             </div>
								<div class="col-md-6" style="border:1px solid #C6DEEB">
									<div class="col-md-1"></div>
									<div class="col-md-11">
										<div class="form-group" style="background-color:#eea200;color:white;width:80%;top:4px;position:relative;"  >
												 <span style="margin-left:20px;font-size:large">注册团队信息</span>
										</div>
										<div class="form-group  has-feedback">
								                <label >团&nbsp;&nbsp;队&nbsp;&nbsp;号:&nbsp;</label>
								                <div class="input-group" style="width:80%">
								                  
								                    <input id="teamno" class="form-control" placeholder="请输入团队号" maxlength="10" type="text">
								                </div>
								                <span style="color:red;display: none;" class="tips"></span>
								                <span style="display: none;" class=" glyphicon glyphicon-remove form-control-feedback"></span>
								                <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
							           	   </div>
							           	   <div class="form-group   has-feedback">
								                <label for="teamname">团&nbsp;&nbsp;队&nbsp;&nbsp;名:&nbsp;</label>
								                <div class="input-group" style="width:80%">
								                    <input id="teamname" class="form-control" placeholder="请输入团队名" maxlength="20" type="text">
								                </div>
								           </div>
								           <div class="form-group   has-feedback">
								                <label for="teamemail">团队Email:</label>
								                <div class="input-group" style="width:80%">
								                    <input id="teamemail" class="form-control" placeholder="请输入团队邮箱" maxlength="20" type="text">
								                </div>
								           </div>
								           <div class="form-group   has-feedback">
								                <label for="max">最大用户数:</label>
								                <div class="input-group" style="width:80%">
								                    <input id="max" class="form-control" placeholder="请输入最大用户数" maxlength="20" type="text">
								                </div>
								           </div>
								          <div class="row">
								                <div class="col-xs-7">
								                    <div class="form-group has-feedback">
								                        <label for="idcode-btn">校验码</label>
								                        <div class="input-group" style="width:100%">
								                            <input id="idcode-btn" class="form-control" placeholder="请输入校验码" maxlength="6" type="text">
								                        </div>
								                        <span style="color:red;display: none;" class="tips"></span>
								                        <span style="display: none;" class="glyphicon glyphicon-remove form-control-feedback"></span>
								                        <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
								                    </div>
								                </div>
								                <div class="col-xs-5 text-center" style="padding-top: 26px">
								                    <button type="button" id="loadingButton" class="btn btn-primary" autocomplete="off">获取校验码</button>
								                </div>
								            </div>
					                       
									</div>
								</div>
							</div>
			
						</form>

					</div>
					<div class="modal-footer">
						
						<button type="button" class="btn btn-primary" data-dismiss="modal" id="submitAdd"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content"style="border:5px solid #307ecc">
					<div class="modal-header"style="background-color: #307ecc">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="myModalLabel">编辑</h4>
					</div>
					<div class="modal-body" style="padding: 10px 20px 10px 20px;">

						<form >
							<div class="row form-inline form-group">
								<div class="col-md-4"><label for="exampleInputName2">团队号：&nbsp;&nbsp;&nbsp;</label></div>
								<div class="col-md-8">
									
									<input id="teamNo" type="text" class="form-control" placeholder="团队号">
								</div>
							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4"><span >是否独立团队：</span></div>
								<div class="col-md-8">
								    <div class=" col-md-3">
										<label>
											<input type="radio" name="optionsRadios" id="optionsRadios11" value="y" >是
										</label>
									</div>
									<div class=" col-md-3">
										<label>
											<input type="radio" name="optionsRadios" id="optionsRadios12" value="n">否
										</label>
									</div>
								</div>
							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4"><label for="exampleInputName2">团队名称：</label></div>
								<div class="col-md-8">	
									<input type="text" class="form-control" id="teamName" placeholder="团队名称">
								</div>
							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4">
								<label for="exampleInputEmail2">团队邮件：</label>
								</div>
								<div class="col-md-8">
									
									<input type="teamemail" class="form-control" id="teamEmail" placeholder="团队邮件">
								</div>
							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4">
								<label for="exampleInputName2">管理员号：</label>
								</div>
								<div class="col-md-8">
									
									<input type="text" class="form-control" id="userName" placeholder="管理员号">
								</div>
							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4"><label style="font-size: 13px;" for="exampleInputEmail2">管理员邮件：</label>
								</div>
								<div class="col-md-8">
									<input type="email" class="form-control" id="userEmail" placeholder="管理邮件">
								</div>
							</div>
							
							<div class="row form-inline form-group">
								<div class="col-md-4"><label for="exampleInputName2">最大用户数：</label></div>
								<div class="col-md-8">
									
									<input type="number" class="form-control" id="maxNum" placeholder="最大用户数">
								</div>

							</div>
							<div class="row form-inline form-group">
								<div class="col-md-4"><label for="exampleInputName2">更新日期：</label></div>
								<div class="col-md-8">
									
									<input type="text" class="form-control" id="date" placeholder="更新日期">
								</div>
							</div>
							<div class="row form-inline form-group">
								<!-- <div class="col-md-4"></div>
								<div class="col-md-8"> -->
									<textarea id="note" style="width: 100%;" class="form-control" rows="1" placeholder="备注"></textarea>
								<!-- </div> -->
							</div>
						</form>

					</div>
					<div class="modal-footer">
						<button type="button" id="edit_submit" class="btn btn-primary edit"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
					</div>
				</div>
			</div>
		</div>

		<script src="../js/jquery-2.0.3.min.js"></script>
		<script src="../js/jquery.cookie.js"></script>

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='../js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
		</script>
		<script src="../js/bootstrap.min.js"></script>
		<script src="../js/bootstrap-table.js"></script>
		<script src="../js/bootstrap-editable.js"></script>
		<script src="../js/bootstrap-table-zh-CN.js"></script>
		<script src="../js/typeahead-bs2.min.js"></script>
		<script src="../js/switch/highlight.js"></script>
		<!-- <script src="js/switch/bootstrap-switch.js"></script> -->
		<script src="../js/switch/main.js"></script>

		<script src="../js/ace-elements.min.js"></script>
		<script src="../js/ace.min.js"></script>
		
		

		<script>
			$("#btn_add").click(function() {//新增团队
				 $('#add').modal(); 
				 var select = "";
				 $('input[type=radio][name=optionsRadiosAdd]').change(function(){
					select = this.value;
					 if(this.value=="y")
					 {
						 
					 	$('#teamno').attr("readOnly",true);
					 	$('#teamname').attr("readOnly",true);
					 	$('#teamemail').attr("readOnly",true);
					 	$('#max').attr("readOnly",true);
					 	$('#max').val("1");
					 }else
					 {
						$('#teamno').attr("readOnly",false);
					 	$('#teamname').attr("readOnly",false);
					 	$('#teamemail').attr("readOnly",false);
					 	$('#max').attr("readOnly",false);
					 	$('#max').val("");
					 }
				 });
				 /* $('#username').focus(function(){
					 alert("asdssssss");
				 }); */
				 $('#submitAdd').click(function(e){//新增团队保存
					   var teamno =  $("#teamno").val();
					   var teamname = $("#teamname").val();
					   var userno =  $("#userno").val();
					   var username = $("#username").val(); 
					   var max = $("#max").val();
					   var useremail = $("#useremail").val();
					   var teamemail = $("#teamemail").val(); 
					   var userRole = "c";
					   if(select=="y")
					   {
						   teamno = userno;
						   teamname = username;
						   teamemail = useremail;
						   userRole = "b";
					   }
					   $.ajax({
							type: "Post",
							contentType: "application/json",
							data: '{"teamNo":"' + teamno + '","teamName":"'+teamname+'","userName":"'+username+'","maxNum":"'+max+'","userEmail":"'+useremail+'","userRole":"'+userRole+'","teamEmail":"'+teamemail+'"}',
							dataType: 'json',
							url: '/ma/team',
							success: function(data) {
								
								
							}
						});
					   
				 });				
			});
		</script>
		<script>
			$('#sample-table-2').bootstrapTable({
				url: '/ma/team',
				method: 'get', //请求方式（*）
				toolbar: '#toolbar', //工具按钮用哪个容器
				//striped: true, //是否显示行间隔色
				cache: false, //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
				pagination: true, //是否显示分页（*）
				sortable: true, //是否启用排序
				sortOrder: "desc", //排序方式
				sidePagination: "client", //分页方式：client客户端分页，server服务端分页（*）
				pageNumber: 1, //初始化加载第一页，默认第一页
				pageSize: 10, //每页的记录行数（*）
				pageList: [10, 25, 50, 100], //可供选择的每页的行数（*）
				search: true, //是否显示表格搜索，此搜索是客户端搜索，不会进服务端，所以，个人感觉意义不大
				strictSearch: true,
				/* showColumns: true, */ //是否显示所有的列
				showRefresh: true, //是否显示刷新按钮
				minimumCountColumns: 2, //最少允许的列数
				clickToSelect: true, //是否启用点击选中行
				//height: 500, //行高，如果没有设置height属性，表格自动根据记录条数觉得表格高度表头与表不对应，则去掉height属性
				uniqueId: "teamNo", //每一行的唯一标识，一般为主键列
				showToggle: true, //是否显示详细视图和列表视图的切换按钮
				cardView: false, //是否显示详细视图
				detailView: false,
				editable: true,
				toolbarAlign: "left",
				onDblClickRow: function(row, value,field,td) {
					
					if(field == 'userEmail')
						{
						window.location.href="email.html";
						}
					else{
						$.cookie('teamNo', item.teamNo);
						$.cookie('teamName', item.teamName); 
						window.location.href="teamMember.html";
					}
 				},
				columns: [
				          {
				        	  formatter: function (value, row, index) {  
		                           return index+1;  
		                       },
						  width:30
				          },
				  {
					field: 'teamNo',
					title: '团队号',
					width: 40,
					align: 'center',
					sortable: true
				},  {
					field: 'userName',
					visible:false,
				},  {
					field: 'teamName',
					title: '团队名称',
					align: 'center',
					rowspan: 1,
					colspan: 1,
					formatter : function(value, row, index){
				      	  var div = "<div style='width:100px;'>"+value+"</div>";
				      	  return div;
				        },
					 width: 40, 
					/* align: 'left', */
					//sortable: true

				},   {
					field: 'category',
					visible:false,
				}
				, {
					field: 'note',
					visible:false,
				},
				 {
					field: 'userRole',
					visible:false,
				}, 
				{
					field: 'discipline',
					title: '所属专业（类）',
					width: 60,
					align: 'center',
					rowspan: 1,
					editable: true,
					sortable: true
				},{
					field: 'currentNum',
					title: '当前</br>用户数',
					width: 30,
					align: 'center',
					rowspan: 1,
					colspan: 1,
					sortable: true
				}, {
					field: 'maxNum',
					title: '最大</br>用户数',
					width: '20px',
					align: 'center',
					sortable: true
				},  {
					field: 'userEmail',
					width:35,
					title: '管理员邮件',
					align: 'center',
					sortable: true
				}, {
					field: 'teamEmail',
					title: '团队邮件',
					width:35,
					align: 'center',
					sortable: true
				}, {
					field: 'date',
					title: '表单更<br/>新日期',
					width:50,
					align: 'center',
					sortable: true
				}, 
				 {
					field: 'state',
					width:35,
					title: '状态',
					align: 'center',
					sortable: true
				},
				{
					title: '操作',
					width: 50,
					field: 'id',
					align: 'center',
					formatter: function(value, row, index) {
						var e = '<a class = "edit" href="#" mce_href="#"><i class="icon-pencil bigger-130"></i></i></a> ';
						var d = '<a class = "remove" href="#" mce_href="#" ><i class="icon-trash bigger-130"></i></a> ';
						var x = '<a class = "detail" href="#" mce_href="#" ><i class="glyphicon glyphicon-list-alt"></i></a> ';
						return e + d + x;
					},
					events: 'operateEvents'
				}]
			});

			window.operateEvents = {
				'click .edit': function(e, value, row, index) {
					categoryinit();
					$("#teamNo").val(row.teamNo);
					$("#teamName").val(row.teamName);
					 $("#userName").val(row.userName); 
					/*  $("#category").val(row.category); 
					$("#discipline").val(row.discipline); */
					$("#currentNum").val(row.currentNum);
					$("#maxNum").val(row.maxNum);
					$("#userEmail").val(row.userEmail);
					$("#teamEmail").val(row.teamEmail); 
					$("#date").val(row.date);
					$("#note").val(row.note);
					/* alert(row.category+"--"+row.discipline); */
					if(row.userRole=='c')
						$("#optionsRadios12").attr("checked", "checked");
					else
						$("#optionsRadios11").attr("checked", "checked");					
					$('#edit').modal();					
					$("#edit_submit").click(function(e) {
						var teamNo = $('#teamNo').val();
						var teamName = $("#teamName").val();
						var userName = $("#userName").val();
						/* var category = $("#category").val();
						var discipline = $("#discipline").val(); */
						var maxNum = $("#maxNum").val();
						var userEmail =$("#userEmail").val();
						var teamEmail = $("#teamEmail").val();
						var note = $("#note").val();
						$.ajax({
							type: "PUT",
							contentType: "application/json",
							data: '{"teamNo":"' + teamNo + '","teamName":"'+teamName+'","userName":"'+userName+'","maxNum":"'+maxNum+'","userEmail":"'+userEmail+'","teamEmail":"'+teamEmail+'"}',
							dataType: 'json',
							url: '/ma/team',
							success: function(data) {
								
								$('#edit').modal('hide');
								$('#sample-table-2').bootstrapTable('refresh');
							}
						});
					})
				},
				'click .remove': function(e, value, row, index) {
					/*$("#myModal .confirm").attr("onclick","confirmRemove("+row.teamNo+");");*/
					$('#myModal').modal();
					console.log(row);
					$("#myModal .confirm").click(function(e) {
						$.ajax({
							type: "PUT",
							contentType: "application/json",
							data: '{"teamNo":"' + row.teamNo + '","ifuse":"n"}',
							dataType: 'json',
							url: '/ma/team',
							success: function(data) {
								$('#sample-table-2').bootstrapTable('remove', {
									field: 'teamNo',
									values: [row.teamNo]
								});
								$('#myModal').modal('hide');
							}
						});
					})
				},
				'click .detail': function(e, value, row, index){
					alert("sdsd");
					$.cookie('teamNo', row.teamNo);
					$.cookie('teamName', row.teamName);
					window.location.href = "teamMember.html";
				}
			};
			//初始化学科门类
			function categoryinit(){
				 $.ajax({  
		             type: 'get',  
		             url: "./category/query",  
		             dataType: 'json',  
		             async: false,  
		             success: function (Data) {	
		            	 var optionstring="";
		            	 for (var i in Data) {  		            		
		                     var jsonObj =Data[i]["categoryName"];   
		                      optionstring += "<option value=\"" +jsonObj+ "\" >" + jsonObj + "</option>";             
		                 } 
		            	   $("#category").html("<option value='请选择'>请选择...</option> "+optionstring); 
		             },  
		             error: function (XMLHttpRequest, textStatus, errorThrown) {//请求失败处理函数  
		                 console.log("请求失败，无法获取分组数据");  
		             }  
		         }); 				
			};
		//门类发生变化	
		function categoryChange(){
			var selected = document.getElementById("category").value;
			 $.ajax({  
	             type: 'get',  
	             url: "./category/query/"+selected,  
	             dataType: 'json',  
	             async: false,  
	             success: function (Data) {	
	            	 var optionstring="";
	            	 for (var i in Data) {  		            		
	                     var jsonObj =Data[i]["major"];   
	                      optionstring += "<option value=\"" +jsonObj+ "\" >" + jsonObj + "</option>";             
	                 } 
	            	   $("#discipline").html("<option value='请选择'>请选择...</option> "+optionstring); 
	             },  
	             error: function (XMLHttpRequest, textStatus, errorThrown) {//请求失败处理函数  
	                 console.log("请求失败，无法获取分组数据");  
	             }  
	         }); 
		};				
		</script>

	</body>

</html>